Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to FSRS #41

Merged
merged 4 commits into from
Feb 9, 2024
Merged

Update to FSRS #41

merged 4 commits into from
Feb 9, 2024

Conversation

h16nning
Copy link
Owner

@h16nning h16nning commented Feb 9, 2024

  • Implemented FSRS (using fsrs.js). Several UI components had to be updated to comply with the new model.
  • Removed old SpacedRepetition (based on SM2)
  • Updated learn.ts, LearnView, LearnViewHeader and LearnViewFooter and more to use the new algorithm
  • Rewrote short-term scheduling in learn.ts. The code is a little shorter now and hopefully more readable. Despite some basic manual testing the new short-term algorithm may contain some more bugs. I'll fix them as I find them.
  • Option to sort how cards appear in LearnView (no UI yet), for now sort by creation date and alphabet.
  • Added RemainingCardsIndicator back to the UI (shows how many cards of which type are left). Its design is pretty rough right now and only temporary.

Might be still buggy or have placeholder values, not everything tested yet

temporary ui to debug
Sort types: for now byCreationDate and bySortField (using displayPreview from CardTypeManager)
- fixed repetition accuracy and repetition numbers
- fixed isFinished being set to true if there is still a card but react state hasn't updated yet (current solution: isFinished is being set to false again, but it is fast enough to not be visible)
- fixed DeckPreview showing always one as to review count
- Removed DebugCardTable from always showing in LearnView
- fixed stopwatch
- fixed ProgressBar for learnAll
@h16nning h16nning merged commit ba8bc82 into main Feb 9, 2024
4 checks passed
@h16nning h16nning deleted the feature-33-scheduler branch March 11, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant